<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>
<!-- 3. 切换支付方式效果  -->

<body>
    <div id="app">
        <ul>
            <li @click="list = '微信'">微信</li>
            <li @click="list = '支付宝'">支付宝</li>
            <li @click="list = '银行卡'">银行卡</li>
            <h1>{{ list }}</h1>
        </ul>
    </div>
</body>
<script>
    const { createApp, ref } = Vue;

    createApp({
        setup() {
            const list = ref('');
            return {
                list
            }
        }
    }).mount('#app')
</script>

</html>